
import cloud from '@lafjs/cloud'
import nw from "nw-lafjs";
import {ok} from "@/utils/responseUtil";
const db = cloud.database();
const _ = db.command
// @ts-ignore
export default async function (ctx: FunctionContext) {
  /**
   * 查询全部数据
   */
  let data = await nw.db.findListByWhereJson({
    dbName:"ware",
    whereJson:{deleted:_.eq(0)}
  })
  return ok(data)
}
